package cluster

import (
	"kubernate-server/service"

	"github.com/gin-gonic/gin"
)

/**
 * Author: sbw
 * Description: cluster路由
 * Date:20250927
 */

type ClusterRoute struct {
}

func (*ClusterRoute) InitK8SClusterRouter(r *gin.Engine) {
	group := r.Group("/cluster")
	group.POST("/", service.ApiGroupApp.AddCluster)
	group.GET("/list", service.ApiGroupApp.QueryClusters)
	group.GET("/:clusterName", service.ApiGroupApp.ChangeCluster)
	group.DELETE("/:id", service.ApiGroupApp.DeleteCluster)

}
